﻿using CuaHangLego.Model;
using System;
using System.Collections.Generic;
using System.Data.SqlClient;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace CuaHangLego.Bussiness.Parser
{
    public class NhaCungCapParser
    {
        public static NhaCungCap Parse(SqlDataReader sdata)
        {
            NhaCungCap ncc = new NhaCungCap();
            ncc.MaSo = int.Parse(sdata["ID"].ToString());
            ncc.Ten = sdata["Ten"].ToString();
            ncc.DiaChi = sdata["DiaChi"].ToString();
            ncc.Email = sdata["Email"].ToString();
            ncc.DienThoai = sdata["DienThoai"].ToString();
            return ncc;
        }
    }
}
